package com.gsta.cdn.cdr.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.gsta.cdn.cdr.entity.ResultEntity;
import com.gsta.cdn.cdr.mapper.FileSizeMapper;
import com.gsta.cdn.cdr.mapper.ResolutionTypeMapper;
import com.gsta.cdn.cdr.service.FileSizeService;
import com.gsta.cdn.cdr.service.ResolutionTypeService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class FileSizeServiceImpl extends ServiceImpl<FileSizeMapper, ResultEntity> implements FileSizeService {
    @Override
    public List<Map<String, Object>> FileSizeAll(String date, String percent, int page, int pageSize) {
        page= (page-1) * pageSize;
        return baseMapper.FileSizeAll(date,percent,page,pageSize);
    }

    @Override
    public List<Map<String, Object>> FileSizeArea(String date, String percent) {
        return baseMapper.FileSizeArea(date,percent);
    }

    @Override
    public List<Map<String, Object>> FileSizeByArea(String date, String percent, String area, int page, int pageSize) {
        page= (page-1) * pageSize;
        return baseMapper.FileSizeByArea(date,percent,area,page,pageSize);
    }

    @Override
    public List<Map<String, Object>> FileSizeByPopName(String date, String percent, String popName, int page, int pageSize) {
        page= (page-1) * pageSize;
        return baseMapper.FileSizeByPopName(date,percent,popName,page,pageSize);
    }

    @Override
    public List<Map<String, Object>> FileSizeAreaPopName(String date, String percent, String area) {
        return baseMapper.FileSizeAreaPopName(date,percent,area);
    }

    @Override
    public List<Map<String, Object>> FileSizeByAreaPopName(String date, String percent, String area, String popName, int page, int pageSize) {
        page= (page-1) * pageSize;
        return baseMapper.FileSizeByAreaPopName(date,percent,area,popName,page,pageSize);
    }

    @Override
    public List<Map<String, Object>> FileSizePopID(String date, String percent) {
        return baseMapper.FileSizePopID(date,percent);
    }

    @Override
    public List<Map<String, Object>> FileSizeByPopID(String date, String percent, String popID, int page, int pageSize) {
        page= (page-1) * pageSize;
        return baseMapper.FileSizeByPopID(date,percent,popID,page,pageSize);
    }
}
